package com.gglx.tweens
{
	import com.greensock.OverwriteManager;
	import com.greensock.TweenLite;
	import com.greensock.plugins.TransformMatrixPlugin;
	import com.greensock.plugins.TweenPlugin;

	public final class GGMax
	{
		public static function activatePlugins():void
		{
			OverwriteManager.init(OverwriteManager.ALL_IMMEDIATE);

			TweenPlugin.activate([TransformMatrixPlugin]);
		}

		/*
		original wrap to tween max
		//*/
		public static function to(target:Object, duration:Number, vars:Object):TweenLite
		{
			return TweenLite.to(target, duration, vars);
		}

		public static function from(target:Object, duration:Number, vars:Object):TweenLite
		{
			return TweenLite.from(target, duration, vars);
		}

		public static function delayedCall(delay:Number, onComplete:Function, onCompleteParams:Array = null, useFrames:Boolean = false):TweenLite
		{
			return TweenLite.delayedCall(delay, onComplete, onCompleteParams, useFrames);
		}

		public static function killTweensOf(target:Object, complete:Boolean = false, vars:Object = null):void
		{
			TweenLite.killTweensOf(target, complete, vars);
		}
	}
}
